<template>
	<div>
		<a-input v-model:value="value" :disabled="disabled" @pressEnter="pressEnter" />
	</div>
</template>

<script>
export default {
	name: "cc-input",
	data() {
		return {
			value:"",
			disabled:false
		}
	},
	created(){

	},
	methods: {
		setValue(val){
			this.value=val;
		},
		setDisabled(disabled){
			this.disabled=disabled;
		},
		pressEnter(e){
			this.$emit("pressEnter",e);
		}
	},
	watch:{
		"value":function (val){
			this.$emit("change",val,this.disabled);
		}
	}
}
</script>

<style scoped>

</style>
